package com.lsq.baseadmin.common.utils;

import java.util.concurrent.*;

/**
 * @author sojan-lsq
 * @since 2020/11/24 11:09
 * @desc 线程池
 */
public class ThreadPoolUtil {

    public static ExecutorService threadPool = new ThreadPoolExecutor(5, 200,
            60L, TimeUnit.SECONDS,
            new LinkedBlockingQueue<>(1024),
            Executors.defaultThreadFactory(),
            new ThreadPoolExecutor.AbortPolicy());
}
